package com.wu.apiorderaddfeign.service.fallback;

import com.wu.apiorderaddfeign.service.Feign.OrderAddClient;
import com.wu.apiorderaddfeign.service.OrederService;
import com.wu.beans.Oreders;
import com.wu.vo.Reultvo;
import org.springframework.stereotype.Component;

@Component
public class OrderAddClientFallback implements OrderAddClient{
   @Override
    public Reultvo addOrder(Oreders order, String str) {
        System.out.println("-------addOrder的降级服务");
        return Reultvo.fail(300, "fail");
    }

    @Override
    public Oreders addOrder(String orderId) {
        System.out.println("-------addOrder get 的降级服务");
        return new Oreders();
    }


}